package com.grom.service;

import java.util.List;

import com.grom.dao.TargetDao;
import com.grom.po.Target;

public interface TargetService {
	TargetService instance = new TargetService() {

		public List<Target> getAllTargets() {
			return TargetDao.instance.getAllTargets();
		}

		public void add(Target object) {
			TargetDao.instance.add(object);
		}

		public void update(Target object) {
			TargetDao.instance.update(object);
		}

		public Target getTargetById(String ID) {
			return TargetDao.instance.getTargetById(ID);
		}

		public void delete(Target object) {
			TargetDao.instance.delete(object);
		}

		public List<Target> selectByCondition(String sql) {
			return TargetDao.instance.selectByCondition(sql);
		}

	};

	List<Target> getAllTargets();

	List<Target> selectByCondition(String sql);

	Target getTargetById(String ID);

	void add(Target object);

	void delete(Target object);

	void update(Target object);

}
